package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-08-25
 * Time: 16:51
 */

class MyRunnable2 implements Runnable{

    @Override
    public void run() {
        System.out.println("hello2");
    }
}
public class ThreadD2 {
    public static void main(String[] args) {
        Runnable runnable = new MyRunnable2();
        Thread t = new Thread(runnable);
        t.start();
    }

}
